package com.neusoft.service;

import java.util.List;
import com.neusoft.po.Comment;

public interface CommentService {
    
    public List<Comment> listCommentByBusinessId(Integer businessId);
    
    public List<Comment> listCommentByUserId(String userId);
    
    public Comment getCommentByOrderId(Integer orderId);
    
    public Double getAverageRatingByBusinessId(Integer businessId);
    
    public int saveComment(String userId,Integer businessId,Integer orderId,String commentContent,Integer rating,Boolean isAnonymous);
    
    public int updateComment(Integer commentId, String commentContent, Integer rating, Boolean isAnonymous);
    
    public int deleteComment(Integer commentId);
} 